﻿namespace MicroCloud.AspNetCore.Mvc
{
    /// <summary>
    /// Api资源管理特性，可配置Api可见及分组信息，此属性与“<see cref="ApiExplorerSettingsAttribute"/>”等效
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
    public sealed class ApiExplorerAttribute : ApiExplorerSettingsAttribute
    {
        #region 属性
        /// <summary>
        /// 获取或设置 标题
        /// </summary>
        public string Title { get; set; }
        
        /// <summary>
        /// 获取或设置 描述
        /// </summary>
        public string Description { get; set; }

        #endregion

        #region 构造函数
        /// <summary>
        /// 初始化一个Api资源管理特性 <see cref="ApiExplorerAttribute" /> 的新实例
        /// </summary>
        public ApiExplorerAttribute()
        { }

        #endregion

    }

}
